package com.utils.okhttputils;

import com.zhy.http.okhttp.OkHttpUtils;
import com.zhy.http.okhttp.callback.Callback;

import java.util.TreeMap;

/**
 * Created by dufeng on 2017/4/21.
 */

public class HttpUtils {

    public static void http_post_string(String url,String jsonBody, Callback callback){
        if(url.isEmpty() || jsonBody.isEmpty()){
            return;
        }

        OkHttpUtils
                .postString()
                .url(url)
                .content(jsonBody)
                .build()
                .execute(callback);
    }
}
